from django.urls import path,re_path,include
from users import views
from rest_framework_jwt.views import obtain_jwt_token  # 验证密码后返回token
urlpatterns = [
    path('v1/register/', views.RegisterView.as_view(), name='register'),  # 注册用户
    path('v1/login/', obtain_jwt_token, name='login'),  # 用户登录后返回token
    path('v1/list/', views.UserList.as_view(), name='register'),  # 测试需要携带token才能访问
    path('show/', views.Show.as_view(), name='show'),  # 测试需要携带token才能访问
    path('register/', views.Register.as_view(), name='register'),
]
